
{% assign no = page.title | slice: -1, 1 %}  
<nav>
  <span>Page</span>
{% for i in (1..5) %}  
{% if i == no %}
  <a class="current" href="{{ site.baseurl }}/page/{{i}}">{{i}}</a>
{% else %}
  <a href="{{ site.baseurl }}/page/{{i}}">{{i}}</a>
{% endif %}
{% endfor %}
</nav>
